{% extends "base_petadmin.html" %}

{% block mainheading %}EIONIA ratio{% endblock %}

{% block content %}

<form action="." method="post">
{% csrf_token %}
<input type="hidden" name="year" value="{{ year }}" />
<table>
    <tr>
        <th nowrap>
        <a href="/pet/dvratio?year={{ year_prev }}">&laquo;</a>
        {{ year }}
        {% if year_next > 0 %}
            <a href="/pet/dvratio?year={{ year_next }}">&raquo;</a>
        {% endif %}
        </th>
        <th>Month</th>
        <th>Value</th>
    </tr>
    {% for v in ar_values %}
        <tr class="{% cycle "row1" "row2" %}">
            <td>&nbsp;</td>
            <td>{{ forloop.counter }}</td>
            <td><input type="text" name="v_{{ forloop.counter }}" value="{{ v }}" /></td>
        </tr>
    {% endfor %}
</table>
    <tr>
        <td colspan="3" align="right"><input type="submit" value="Save" class="default" /></td>
    </tr>

</form>

{% endblock %}
